<template>
  <div>
    <navslot class="navs">
      <div class="left" slot="left">
        <van-button icon="arrow-left" type="default"  round  @click="back()"></van-button>
      </div>
      <div slot="center">
        <ul class="list">
          <li>商品</li>
          <li>详情</li>
          <li>评价</li>
          <li>推荐</li>
        </ul>
      </div>
      <div slot="right">
          <van-icon name="more" size="40px" />
      </div>
    </navslot>
    <div class="shop">
      <img :src="shops.src" alt="" class="shop-img">
      <p>{{shops.text}}</p >
      <div class="mes clearfix">
        <div class="money fl">{{shops.price}}</div>
        <div class="look fr"  @click="cass()">相似</div>
      </div>
    </div>
    <!-- {{shop}} -->
  </div>
</template>

<script>
  import navslot from '@/components/nav/navslot'
  export default {
    data(){
      return{
        shops:this.$route.params.item
      }
    },
    created(){
      this.cass();
    },
    methods:{
      back(){
        window.history.go(-1)
      },
      cass(){
         console.log(123456)
        }
    },
              components:{
                navslot
              },
  }
</script>

<style>
  .navs{
    height: 40px;
    /* line-height: 40px; */
    background: gray;
  }
  .center .list{
    display: flex;
    justify-content: space-around;
    line-height: 40px;
  }
  .shop{
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  .shop .shop-img{
    width: 100%;
  }
  .shop p{
    /* overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; */
  }
  .money{
    color: red;

  }
  .look{
    border: 1px solid #333;
    padding: 2px;
    border-radius: 5px;
  }
</style>